import os
from langchain.chat_models import init_chat_model
# 需要购买后注册一个 OpenAI  key
os.environ["OPENAI_API_KEY"] = "sk-..."
model = init_chat_model(
    "deepseek-r1:7b",
    # Kwargs passed to the model:
    temperature=0.7,
    timeout=30,
    max_tokens=1000,
)

response = model.invoke("2025年为什么这么卷?")
print(response)
def main():
    print("Test from OpenAi")

if __name__ == '__main__':
    main()